/**
 * Copyright (C)  Gadglet .
 *
 * This file is part of Gadglet
 *
 * Gadglet is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Gadglet is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with Gadglet. If not, see <http://www.gnu.org/licenses/>.
 */

package com.gadglet.params;

public class SharedConstants {

	// Types of Google gadgets
	public static final int gadgetGoogleTypeiGoogle 			= 0;
	public static final int gadgetGoogleTypeSpreadsheets		= 1;
	public static final int gadgetGoogleTypegMailContext		= 2;
	public static final int gadgetGoogleTypeCalendarEvent		= 3;
	
	// Gadgets Status 
	public static final int gadgetStatusTest 			= 0;
	public static final int gadgetStatusOnLine			= 1;
	public static final int gadgetStatusOffLine			= 2;
		
	// directory  & files
	public static final String 	gadgetDirName = "/gadgets/";
	public static final String 	secureDirName = "/secure/";
	public static final String 	userRegName = "register.jsp?";
	public static final String 	gadgetDispalyPrgName = "/index.jsp";
	public static final String 	gadgetHelpDirName = "/help/";
	public static final String 	gadgetContactUs = "/contactus.jsp";
	public static final String  defaultGadgetServer = "gadglet.appspot.com";
	public static final String  iconDefaultType = ".gif";
	public static final String  gadgetIconDirectory = "/static/icons";
	public static final String 	googleOpenID = "https://www.google.com/accounts/o8/site-xrds?hd=";
	
	// registration
	public static final String registrationTokenParamName ="regToken";
	public static final String registrationProcessParamName ="nextRequestType";
	public static final String registrationDoOAuth ="DoOAuth";
	public static final String registrationDoSigned = "DoSigned";
	public static final String registrationMethodDual = "DUAL";
	public static final String registrationMethodSigned = "SIGNED";
		
	// misc
	public static final String newLine = "\n";
	public static final String tab = "\t";
	public static final String quotes = "\"";
	public static final String gadgletOauthServiceName ="gadgletService";
	public static final String googleOauthServiceName ="google";
	
	public static final String gadgetRequstObject = "gadgetRequstObject";
	
	// contextParams
	public static final String ctxParamServingDomain ="DomainName";
	public static final String ctxParamRegMethod ="RegMethod";
	public static final String ctxParamDefaultGadgetsPackage ="GadgetsRootPackageName";
	public static final String ctxParamSysAdminEmail ="SysAdminEmail";
	public static final String ctxParamGadgetsProviderName ="GadgetsProviderName";
	public static final String ctxParamGadgetsHelpSite ="GadgetsHelpSite";
	public static final String ctxParamMaxActiveUsersForDomain ="MaxActiveUsersForDomain";

	
	

}
